package com.example.dessert.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;

import java.util.Date;

public class Address {

    private Long id;
    private Long userId;
    private String contact;
    private String mobile;
    private String province;
    private String city;
    private String county;
    private String address;

    //插入时自动填充
    @TableField(fill = FieldFill.INSERT)
    private Date createdAt;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updatedAt;


    public Long getId() {
        return id;
    }

    public String getContact() {
        return contact;
    }

    public String getMobile() {
        return mobile;
    }

    public String getProvince() {
        return province;
    }

    public String getCity() {
        return city;
    }

    public String getCounty() {
        return county;
    }

    public String getAddress() {
        return address;
    }

    public Address setUserId(Long userId) {
        this.userId = userId;
        return this;
    }

    public Address setContact(String contact) {
        this.contact = contact;
        return this;
    }

    public Address setMobile(String mobile) {
        this.mobile = mobile;
        return this;
    }

    public Address setProvince(String province) {
        this.province = province;
        return this;
    }

    public Address setCity(String city) {
        this.city = city;
        return this;
    }

    public Address setCounty(String county) {
        this.county = county;
        return this;
    }

    public Address setAddress(String address) {
        this.address = address;
        return this;
    }

}
